import multiprocessing
from multiprocessing import Process,Manager,Queue

def process_1(dt,queue):
    dt[1] = "from process_1"
    for i in range(10):
        queue.put([i])

def log(queue):
    for i in range(10,20):
        queue.put([i])

if __name__ == '__main__':

    manager = Manager()
    dt = manager.dict()
    queue = Queue()
    log_queue = Queue()

    p = Process(target=process_1,args=(dt,queue))
    p.start()
    p.join()

    z = Process(target=log, args=(log_queue,))
    z.start()
    z.join()

    while 1:
        print(queue.get())
        print(log_queue.get())


